import Vue from 'vue'
import Vuex from 'vuex'

import user from './module/user'
import app from './module/app'
import agent from './module/agent'
import custom from './module/custom'
import record from './module/record'
import screen from './module/screen'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    locale: 'zh-CN'
  },
  mutations: {
    setLocale (state, payload) {
      state.locale = payload
    }
  },
  actions: {
    
  },
  modules: {
    user,
    app,
    agent,
    custom,
    record,
    screen
  }
})
